//
//  oldMessageManager.h
//  laonianbang
//
//  Created by 勇拓 李 on 17/10/29.
//  Copyright © 2017年 zaiyou. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, oldMessageType) {
    orderCreate = 100,
    orderStart,
    orderEnd,
    orderFail,
    orderReject,
    orderCancel,
    orderAll,
    userServerApprovePass = 200,
    userServerApproveFail,
    newMessage = 300,
    paySuccess = 9000,
    payFail,
};

@protocol oldMessageDelegate <NSObject>

- (void)receiveMessage:(id)message type:(oldMessageType)type;

@end

@interface oldMessageManager : NSObject

@property (nonatomic, weak)id<oldMessageDelegate> delegate;

- (instancetype)initWithType:(oldMessageType)type;

- (void)registerForNotifications;

- (void)unregisterFromNotifications;

@end
